
function setResultId(selectValue) {
	document.getElementById("resultId").value = selectValue;
}
function answerQuestion(questionFlag) {
	var resultId = document.getElementById("resultId").value;
	if (resultId == "") {
		alert("请选择答案!");
		return;
	}
	var formObject = document.getElementById("questionResultForm");
	if (questionFlag == "firstTime") {
		formObject.action = '/lottery/firstAnswer.do';// 第一次答题
	} else {
		formObject.action = '/lottery/nextAnswer.do';// 答题
	}
	var questionToken=document.getElementById("questionSubmit");
	questionToken.disabled=true;
	formObject.submit();
}
//初始化题目
function initQuestion() {
	var formObject = document.getElementById("initQuestionForm");
	var phaseId = document.getElementById("phaseId").value;
	formObject.action = '/lottery/user/initQuestion.do';
	formObject.submit();
}

function initLottery(){
	var formOjbect =document.getElementById("initLotteryForm");
	//var phaseId = document.getElementById("phaseId").value;
	formOjbect.action = '/lottery/user/lotteryAction.do';
	formOjbect.submit();
}